<template>
	<view style="padding: 20rpx;background-color: #FFFFFF;margin: 20rpx;">
		
		<view style="display: flex;justify-content: space-between;border-bottom: 1px solid #e5e5e5 ">
				<view>购买药店:{{detail.user.user_name}}</view>
				<!-- <view>222222222222222222222222</view> -->
		</view>
		
		<view style="display: flex;margin-top: 20rpx;">
			<view style="width: 200rpx;height: 200rpx;"><image style="width: 200rpx;height: 200rpx;" :src="$util.img(detail.prices.pic_cover)"></image></view>
			<view style="margin-left: 20rpx;">
				
				<view>{{detail.goods.goods_name}}</view>
				<view><text style="color:#898989;font-size: 15rpx;margin-right: 5px;">单价:</text><text style="color: #FF0036;">￥{{detail.goods.price}}</text></view>
				<view><text style="color:#898989;font-size: 15rpx;margin-right: 5px;">购买数量:</text>{{detail.goods.num}}</view>
				<view><text style="color:#898989;font-size: 15rpx;margin-right: 5px;">总价:</text><text style="color: #FF0036;">￥{{detail.goods.goods_money}}</text></view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import http from 'common/js/http.js';
	export default {
		data() {
			return {
				detail:{}
			}
		},
		onLoad(e) {
			console.log("eeeeeeeeeeeeeeeeeeeee",e)
			this.getList(e.id)
		},
		mixins: [http],
		methods: {
		
		
		getList(e){
		this.sendRequest({
					url: 'System.Distribution.myCommissionInfo',
					data: { type_alis_id: e },
					success: res => {
						console.log('获取订单状态==========',res)
						if (res.code == 0) {
							this.detail=res.data
						}
					}
				});			
			
			
			
		}
		
		
			
		}
	}
</script>

<style>

</style>
